x86: correctly set nonlazy_xstate_used when loading full state
authorJan Beulich <jbeulich@suse.com>
Mon, 30 Jul 2018 09:18:54 +0000 (11:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 30 Jul 2018 09:18:54 +0000 (11:18 +0200)
commitda33530ab393dcc04d3e35424956277669b8d8ce
treec392bc1819b23c8fa5ffa68b44f4be42a2dbed89
parente932371d6ae0f69b89abb2dce725483c75356de2
x86: correctly set nonlazy_xstate_used when loading full state

In this case, just like xcr0_accum, nonlazy_xstate_used should always be
set to the intended new value, rather than possibly leaving the flag set
from a prior state load.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: f46bf0e101ca63118b9db2616e8f51e972d7f563
master date: 2018-07-09 10:51:02 +0200
xen/arch/x86/domctl.c
xen/arch/x86/hvm/hvm.c